wsserver:wsserver.cpp
	g++ -o $@ $^ -lpthread -lboost_system -std=c++11

json:json.cpp
	g++ -o $@ $^ -lpthread -lboost_system -ljsoncpp -std=c++11

mysql:mysql.c
	gcc -o $@ $^ -L/usr/lib64/mysql/ -lmysqlclient

.PHONY:clean
clean:
	rm -f json wsserver mysql